package com.order.service.impl;

import com.order.Client.StorageClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author cyt
 * @create 2020-08-25 14:53
 */
@Slf4j
@Service
public class StorageService {
    @Autowired
    StorageClient storageClient;

    public void decStorage(Integer productId,Integer count){
        storageClient.decStorage(productId,count);
        log.info("库存修改成功");
    }

}
